﻿<%@ Page Language="C#" Theme="WebMaster" MasterPageFile="~/WebMaster/MasterPage.master"
    AutoEventWireup="true" Inherits="SouthernLand.WebMaster.Articles.ArticleCategory"
    CodeBehind="ArticleCategory.aspx.cs" %>

    <%@ Register TagPrefix="southern" Namespace="SouthernLand.Common.BOL.Articles" Assembly="SouthernLand" %>
<%@ Register Src="~/WebMaster/Controls/Title.ascx" TagName="Title" TagPrefix="uc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageContent" runat="Server">
    <uc:Title runat="server" ResourceKey='' Text='Loại bài viết' />
    <table height="100%" cellspacing="0" cellpadding="0" width="100%" border="0">
        <tbody>
            <tr>
                <td valign="top" align="left">
                    <div>
                        <table border="0" width="100%" align="center">
                            <tr>
                                <td align="center">
                                    <asp:Label runat="server" ID="lblMsg" ForeColor="red"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="padding-top: 5pt">
                                    <table border="0" cellpadding="6" align="center">
                                        <tr>
                                            <td align="right">
                                                <b>Loại cha: </b>
                                            </td>
                                            <td>
                                                <southern:ddlarticlecategory runat="server" id="dlArticleCategory" width="255" enableviewstate="true"
                                                    cssclass="Textbox" />
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="dlArticleCategory"
                                                    Display="Dynamic" ErrorMessage="<br>Select Parent ArticleCategory" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                <b>Loại tin tức(vn): </b>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtCateName" runat="server" Width="250" MaxLength="700"></asp:TextBox>
                                                <asp:RequiredFieldValidator runat="server" ID="rfvCateName" ControlToValidate="txtCateName"
                                                    ErrorMessage="*" Display="Dynamic"></asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                <b>Loại tin tức(en): </b>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtCateName_en" runat="server" Width="250" MaxLength="700"></asp:TextBox>
                                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" ControlToValidate="txtCateName_en"
                                                    ErrorMessage="*" Display="Dynamic"></asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr class="Hidden">
                                            <td valign="top" align="right">
                                                <b>Description: </b>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtCateDesc" runat="server" Width="250" TextMode="MultiLine" Rows="3"
                                                    MaxLength="700"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr class="Hidden">
                                            <td valign="top">
                                                <b>Image: </b>
                                            </td>
                                            <td>
                                                <asp:FileUpload ID="PhotoFile" runat="server" Width="250" CssClass="Textbox" />
                                                <asp:HiddenField runat="server" ID="HPhotoFile" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                <b>Sắp xếp:</b>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtCateOrder" Font-Bold="true" runat="server" Width="250" MaxLength="700"
                                                    Text="0"></asp:TextBox>
                                                <asp:RangeValidator runat="server" ControlToValidate="txtCateOrder" ID="rvl1" Type="Integer"
                                                    MinimumValue="0" MaximumValue="1000" Display="dynamic" ErrorMessage="<br>Giá trị sắp xếp phải là kiểu số nguyên >=0 và <=1000"
                                                    CssClass="error"></asp:RangeValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right" colspan="2" valign="middle">
                                                <asp:LinkButton runat="server" ID="btCancel" OnClick="btCancel_Click" Text="Cancel"
                                                    CausesValidation="false" />
                                                <asp:LinkButton runat="server" ID="btDelete" OnClick="btDelete_Click" Text="Delete"
                                                    CausesValidation="false" />
                                                <asp:LinkButton runat="server" ID="btSave" OnClick="btSave_Click" Text="Save" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div>
                        <table width="100%" border="0" cellpadding="5">
                            <tr>
                                <td style="padding-left: 20pt;">
                                    <asp:TreeView ShowExpandCollapse="true" ID="TreeArticleCategory" runat="server" ShowLines="True"
                                        EnableViewState="True">
                                        <Nodes>
                                            <asp:TreeNode Text="All Items" SelectAction="SelectExpand" PopulateOnDemand="True"
                                                Value="All Items" />
                                        </Nodes>
                                        <SelectedNodeStyle Font-Underline="True" ForeColor="#5555DD"></SelectedNodeStyle>
                                        <ParentNodeStyle ForeColor="red" />
                                        <RootNodeStyle Font-Bold="true" ForeColor="red" />
                                        <NodeStyle Font-Names="Tahoma" Font-Size="10pt" ForeColor="Black"></NodeStyle>
                                        <HoverNodeStyle Font-Underline="True" ForeColor="#5555DD"></HoverNodeStyle>
                                    </asp:TreeView>
                                </td>
                            </tr>
                            <tr>
                                <td style="padding-left: 20pt; line-height: 12pt">
                                    <%--Click vào danh mục đã có nếu muốn chỉnh sửa hay xóa bỏ danh mục đó.--%>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
</asp:Content>
